# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import fields, models,api
from odoo.exceptions import ValidationError
import odoo.addons.decimal_precision as dp

class mrp_production(models.Model):
    _inherit = 'mrp.production'

    order_plant = fields.Boolean(u'已派单',default=False)
    production_machine_num = fields.Char(u'生产机台号')

    @api.multi
    def set_order_plant(self):
        for production in self:
            production.order_plant=True
